package cn.majingjing.tm.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service")
public interface IHelloService {
	@RequestMapping(value = "/hello", method = RequestMethod.GET)
	String hello(@RequestParam(value = "name") String name);

	@RequestMapping("/test2")
	String test2(@RequestParam(name = "name", defaultValue = "皇太极") String name);
}
